#include <stdio.h>
#include <stdbool.h>

bool is_leap(short year);

int main()
{
	int count = 0;
	for(int i=1; i<2020; i++)
	{
		if(is_leap(i))
		{
			count++;
		}
	}
	printf("一共有%d个闰年\n",count);
}

bool is_leap(short year)
{
	return 0==year%4 && 0!=year%100 || 0==year%400;
}
